package mail;

import javax.mail.PasswordAuthentication;

public class SMTPAuthentificator extends javax.mail.Authenticator {
	private String userName;
	private String password;

	public SMTPAuthentificator(String userName, String password) {
		this.userName = userName;
		this.password = password;
	}

	public PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, password);
	}
}